import com.nf.action.TestAction;
import com.nf.service.TestService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class App {
    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("applicationContext.xml");
        TestAction testAction = (TestAction) ac.getBean("testAction");
        testAction.aa();
    }
}
